
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>运营弹窗</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
  <style>
  </style>
</head>
<body>

<div class="layui-fluid">

  <div class="layui-card">
    <div class="layui-form layui-card-header layuiadmin-card-header-auto">
      <blockquote class="layui-elem-quote">
        {if $role->alias != 'agent'}黑名单、无归属用户、疑似审核员看不到弹窗，下属代理也能设置弹窗，并且看不到管理员设置的弹窗！{/if}读者符合多个弹窗条件，则弹出权重最高的弹窗！
      </blockquote>
      <div class="layui-form-item">

        <div class="layui-inline">
          <input type="text" name="name" placeholder="名称" autocomplete="off" class="layui-input">
        </div>
          <div class="layui-inline">
            <select name="quick_id" lay-search>
              <option value="">选择App</option>
              {foreach $qas as $vo}
              <option value="{$vo.id}">{$vo.name}</option>
              {/foreach}
            </select>
          </div>
        <div class="layui-inline">
          <select name="type">
            <option value="">弹窗类型</option>
            <option value="1">推书</option>
            <option value="2">充值活动</option>
            {if $role->alias != 'agent'}
            <option value="3">外部链接</option>
            {/if}
          </select>
        </div>

        <div class="layui-inline">
          <button class="layui-btn layuiadmin-btn-admin" lay-submit lay-filter="LAY-user-back-search">
            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
          </button>
        </div>
      </div>
    </div>
    <div class="layui-card-body">

      <table id="LAY-pop" lay-filter="LAY-pop"></table>


      <script type="text/html" id="table-useradmin-admin">
        <a class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
        <a class="layui-btn layui-btn-primary layui-border-red layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-edit"></i>删除</a>
      </script>

      <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
          <button class="layui-btn layui-btn-sm" lay-event="add">添加弹窗</button>
        </div>
      </script>

      <script type="text/html" id="switchTpl">
        <input type="checkbox" value="{{d.id}}" lay-skin="switch" lay-text="开|关" lay-filter="statusSwitch" {{ d.status == 1 ? 'checked' : '' }}>
      </script>

      <script type="text/html" id="toppedTpl">
        <input type="checkbox" value="{{d.id}}" lay-skin="switch" lay-text="开|关" lay-filter="toppedSwitch" {{ d.topped == 1 ? 'checked' : '' }}>
      </script>

    </div>
  </div>
</div>


<script src="/static/layuiadmin/layui/layui.js"></script>


{if $role->alias == 'agent'}
{include file="popup/agentTable" /}
{else /}
{include file="popup/defaultTable" /}
{/if}
</body>
</html>

